/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 周斌
 * Date: 2023-11-13
 * Time: 17:13
 */class Student {
    private String name;
    private int age;

    public void exam() {
        System.out.println(this.name+"正在考试中");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
public class Main {
    public static void main(String[] args) {
        Student  student = new Student();
        student.setName("zhangsan");
        System.out.println(student.getName());
    }
}

